/**
 * 
 */
package com.youxin.cpcenter.service;

import com.youxin.cpcenter.model.TbEntMemberIdentifyCapital;
import com.youxin.cpcenter.model.TbOrderInfo;

/**
 * @description 企业资本服务接口
 * @author yingde.cao
 * @date 2017年12月12日
 * @version 1.0
 */
public interface CapitalService {
	/**
	 * 是否可用
	 * @description 
	 * @return boolean
	 */
	public boolean isAvailable(long entIdentifyId);
	/**
	 * 检测可用并更新新合约
	 * @description 
	 * @param entIdentifyId
	 * @return
	 */
	public boolean isAvailableAndUpdate(long entIdentifyId);
	public boolean isCanAddMember(long entIdentifyId);
	public boolean isCanAddLeads(long entIdentifyId); 
	
	/**
	 * 更新资本历史
	 * @description 
	 * @param capital
	 */
	public void updateCaptalHistory(TbEntMemberIdentifyCapital capital);
	/**
	 * 判断是否能够升级资本
	 * @description 
	 * @param entIdentifyId
	 * @return
	 */
	public TbEntMemberIdentifyCapital checkedAvailableAndUpdateCapital(long entIdentifyId);
	public boolean isCanUpgrade(long entIdentifyId);
	/**
	 * 支付升级普通会员和VIP会员
	 * @description 
	 * @param orderInfo
	 * @return
	 */
	public void recharge(TbOrderInfo orderInfo);
}
